package com.syx.migration.mapper.old;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @author Administrator
 * @date 2024/4/22 14:22
 * @description: 老系统全局mapper
 */
@DS("old")
@Mapper
public interface OldGlobalMapper {

    List<HashMap<String, Object>> queryCatalogue(@Param("belong") String belong, @Param("page") Integer page, @Param("size") Integer size);

    List<HashMap<String, Object>> queryBook(@Param("belong") String belong, @Param("bookId") String bookId);

    Long countBook(@Param("belong") String belong, @Param("bookId") String bookId);

    HashMap<String, Object> getBookByBookNumber(@Param("bookNumber") String bookNumber, @Param("belong") String belong);

    List<HashMap<String, Object>> queryBorrowList(@Param("belong") String belong, @Param("bookNumber") String bookNumber);

    HashMap<String, Object> queryUserById(@Param("belong") String belong, @Param("userId") String userId);

    List<HashMap<String, Object>> querySubscribeList(@Param("belong") String belong);

    List<HashMap<String, Object>> queryEbookList();


}
